package com.fy56.platform.logistics.mapper;

import com.fy56.platform.logistics.common.mapper.IBaseMapper;
import com.fy56.platform.logistics.model.SenderContactInfo;

import java.util.List;

public interface SenderContactInfoMapper extends IBaseMapper<SenderContactInfo> {

    void updateDefaultFlag(Long vipMemberId);

    /**
     * 根据用户ID获取发货联系人
     *
     * @param vipMemberId
     * @return
     */
    List<SenderContactInfo> selectByVipMemberId(Long vipMemberId);

    SenderContactInfo getExistsByVipMemberIdAndMobile(SenderContactInfo record);

    /**
     *
     * @mbggenerated 2018-05-29
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-05-29
     */
    int insert(SenderContactInfo record);

    /**
     *
     * @mbggenerated 2018-05-29
     */
    int insertSelective(SenderContactInfo record);

    /**
     *
     * @mbggenerated 2018-05-29
     */
    SenderContactInfo selectByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-05-29
     */
    int updateByPrimaryKeySelective(SenderContactInfo record);

    /**
     *
     * @mbggenerated 2018-05-29
     */
    int updateByPrimaryKey(SenderContactInfo record);
}